<%-- 
    Document   : stdmaster
    Created on : Sep 22, 2012, 7:09:36 PM
    Author     : KUNAL
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Student Master</title>
    </head>
    <body>
        <form action="stdmaster_db.jsp" method="post">
        <table>
            
            <tr>
                <td>GR No</td>
                <td>: <input type="text" name="stud-gr-no" id="stud-gr-no"/></td>
            </tr>
            <tr>
                <td>First Name</td>
                <td>: <input type="text" name="stud-first-name" id="stud-first-name"/></td>
            </tr>
            <tr>
                <td>Middle Name</td>
                <td>: <input type="text" name="stud-middle-name" id="stud-middle-name"/></td>
            </tr>
            <tr>
                <td>Last Name</td>
                <td>: <input type="text" name="stud-last-name" id="stud-last-name"/></td>
            </tr>
            <tr>
                <td>Mother Name</td>
                <td>: <input type="text" name="stud-mother-name" id="stud-mother-name"/></td>
            </tr>
            <tr>
                <td>Cast</td>
                <td>: <input type="text" name="stud-cast" id="stud-cast"/></td>
            </tr>
            <tr>
                <td>Cast Category</td>
                <td>: <select name="stud-cast-category" id="stud-cast-category"> 
                        <option value="">Please Select Category</option>
                        <option value="open">OPEN</option>
                        <option value="obc">OBC</option>
                        <option value="sc">SC</option>
                        <option value="st">ST</option> 
                        <option value="other">Other</option>
                    </select></td>
            </tr>
            <tr>
                <td>Birth Date</td>
                <td>: <input type="date" name="stud-birth-date" id="stud-birth-date"/></td>
            </tr>
            <tr>
                <td><h4>Birth Place </h4></td>
            </tr>
            <tr>
                <td>City</td>
                <td>: <input type="text" name="stud-birth-city" id="stud-birth-city"/></td>
            </tr>
            <tr>
                <td>State</td>
                <td>: <input type="text" name="stud-birth-state" id="stud-birth-state"/></td>
            </tr>
            <tr>
                <td>Country</td>
                <td>: <input type="text" name="stud-birth-country" id="stud-birth-country"/></td>
            </tr>              
            <tr>
                <td>Blood Group</td>
                <td>: <input type="text" name="stud-bloodgroup" id="stud-bloodgroup"/></td>
            </tr>
            <tr>
                <td><h4>Address</h4></td>
            </tr>
            <tr>
                <td>Present</td>
                <td>: <textarea name="stud-present-address" id="stud-present-address"></textarea></td>
            </tr>
            <tr>
                <td>Permanent</td>
                <td>: <textarea name="stud-permanent-address" id="stud-permanent-address"></textarea></td>
            </tr>
            <tr>
                <td><h4>Permanent Address</h4></td>
            </tr>
            <tr>
                <td>City</td>
                <td>: <input type="text" name="stud-permanent-city" id="stud-permanent-city"/></td>
            </tr>
            <tr>
                <td>State</td>
                <td>: <input type="text" name="stud-permanent-state" id="stud-permanent-state"/></td>
            </tr>
            <tr>
                <td>Country</td>
                <td>: <input type="text" name="stud-permanent-country" id="stud-permanent-country"/></td>
            </tr>            
            <tr>
                <td>Pincode</td>
                <td>: <input type="text" name="stud-permanent-pincode" id="stud-permanent-pincode"/></td>
            </tr>
            <tr>
                <td>Nationality</td>
                <td>: <input type="text" name="stud-nationality" id="stud-nationality"/></td>
            </tr>
            <tr>
                <td>Religion</td>
                <td>: <input type="text" name="stud-religion" id="stud-religion"/></td>
            </tr>
            <tr>
                <td><h4>Contact No</h4></td>
            </tr>
            <tr>
                <td>Student</td>
                <td>: <input type="text" name="stud-contact-no" id="stud-contact-no"/></td>
            </tr>
            <tr>
                <td>Parents</td>
                <td>: <input type="text" name="stud-parents-no" id="stud-parents-no"/></td>
            </tr>
            <tr>
                <td>Alternative</td>
                <td>: <input type="text" name="stud-alter-no" id="stud-alter-no"/></td>
            </tr>
            <tr>
                <td>Date of Admission</td>
                <td>: <input type="date" name="stud-admission-date" id="stud-admission-date"/></td>
            </tr>
            <tr>
                <td>Standard of Admission</td>
                <td>: <input type="text" name="stud-admission-std" id="stud-admission-std"/></td>
            </tr>
            <tr>
                <td>Division</td>
                <td>: <input type="text" name="stud-std-division" id="stud-std-division"/></td>
            </tr>
            <tr>
                <td>Remarks</td>
                <td>: <textarea name="stud-admission-remark" id="stud-admission-remark"></textarea></td>
            </tr>  
            <tr>
                <td>: <input type="submit" value="Submit"/></td>
            </tr> 
            
        
        </table>
            </form>
        
        
        <%
        try{
            String msg=application.getAttribute("msg").toString();
            
            if(msg.equals("true"))
            {
        %>       
                <%= msg %>
        <%        
            }
            else
            {
        %>        
                <%= msg %>
        <%        
            } 
            application.removeAttribute("msg");
        }
        catch(Exception e) {}
        %>
        
        
    </body>
</html>
